<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::get('/api/keywords', function () {
    return json_encode(['可可','一点点','茶百道','一只酸奶牛','书一','书二','书三','书4']);
});

Route::get('excel',  function () {
    return view('test.excel1');
});



Route::get('api/admin/swagger/json',  'Admin\SwaggerController@getJson');//swagger定义
Route::get('api/swagger/json',  'Api\SwaggerController@getJson');//swagger定义

